<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> - 基本表单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="../favicon.ico">
    <link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <style>
        #input_warning{
            padding: 5px 10px;
            margin: 0 10px 10px 0;
            background-color: rgba(64,158,255,.1);
            height: 32px;
            line-height: 30px;
            font-size: 12px;
            color: #409EFF;
            border-radius: 4px;
            box-sizing: border-box;
            border: 1px solid rgba(64,158,255,.2);
        }
        #check_people{
            border-radius: 4px;
            border: 1px solid #dcdfe6;
            box-sizing: border-box;
            display: inline-block;
            height: 40px;
            padding: 0 15px;
            width: 50%;
            margin: 0 10px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <!--<div class="ibox-title">-->
                    <!--<h5>借款用户- -->
                        <!--<small>移交协商</small>-->
                    <!--</h5>-->
                <!--</div>-->
                <div class="ibox-content">
                    <form method="post" class="form-horizontal" onsubmit="return false">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">*用户</label>
                            <div class="col-sm-10" style="display: flex;flex-direction: row;flex-wrap: wrap;">
                                <!--<input type="text" name="title" id="account_name"  placeholder="用户名" class="form-control"><br>-->
                                <volist name="user" id="vo">
                                    <span id="input_warning"><{$vo.mobile}></span>
                                </volist>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">审核员</label>
                            <div class="col-sm-10">
                                <select name="check_people" id="check_people" style="width: 120px">
                                    <volist name="check" id="vo">
                                        <option value="<{$vo.id}>"><{$vo.name}></option>
                                    </volist>
                                </select>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button style="margin: 0 10px;" class="btn btn-primary" type="button" onclick="move_to()">分配</button>
                            </div>
                        </div>

                    </form>

                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
<script>

    function move_to() {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var url = "__MODULE__/User/user_distribute";
        var check_people = $("#check_people").val();
        var id="<{$user_ids}>";

        console.log(9090,id+'=====',check_people);
        $.post(url, {user_id:id,check_id:check_people}, function (data) {
            console.log('222',data);
            if (data.code == "1001") {
                layer.alert(data.result, {title: '提示框', icon: 1}, function (index) {
                    var index1 = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index1);
                    window.parent.location.reload();
                });
            }
            else {
                layer.alert(data.result, {title: '提示框', icon: 2});
                layer.close(index);
            }
        });
    }
</script>

</body>
</html>
